package com.atguigu.tingshu.dispatch.task;

import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class XXLJObDemo {

    @XxlJob(value = "task-test01")
    public void test01(){
        String jobParam = XxlJobHelper.getJobParam();
        log.info("XXLJObDemo...test01...执行了...jobParam: {}",jobParam);
    }
}
